package top.lshaci.learning.springboot.jpa.vo;

import lombok.Data;
import top.lshaci.learning.springboot.jpa.annotation.JpaResult;
import top.lshaci.learning.springboot.jpa.config.JpaResultConfig;

/**
 * SlaveVo
 * <p>JPA Repository 查询返回自定义对象</p>
 * <pre>
 *     1、使用 {@link JpaResult} 标记返回对象
 *     2、在 {@link JpaResultConfig} 中添加了 converter
 * </pre>
 *
 * @author liangxu
 */
@Data
@JpaResult
public class SlaveVo {

    private Long id;

    private String name;

    private Long masterId;

    private String masterName;
}
